#include <stdio.h> 
#include <stdlib.h> 

typedef struct
	{
		int Value;
	}Node;
	
int main(void)
	{
		int Amt;
		scanf("%d", &Amt);
		Node **Arr = (Node*)malloc(Amt * sizeof(Node*));
//		Node *Arr[Amt];
		int i = 0;
		for(; i < Amt; i++)
			{
				Node* NewNode = (Node*)malloc(sizeof(Node));
				NewNode->Value = i;
				Arr[i] = NewNode;
			}
		for(i = 0; i < Amt; i++)
			printf("%d\n", Arr[i]->Value);
			
		return 0;
	}

